﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace AntiObesity.Services
{
    public class SecuredPage : System.Web.UI.Page
    {
        protected override void OnPreLoad(EventArgs e)
        {
            base.OnPreLoad(e);

            if (Session.GetCurrentUser() == null)
                Response.Redirect("Login.aspx");
            // for work with pages without login uncomment this:
            //Session.SetCurrentUser(AntiObesity.Base.Managers.UserManager.FindByName("shayan"));
        }
    }
}
